<?php /* Smarty version 2.6.12, created on 2008-10-30 12:48:45
         compiled from admin/main/html_catalog.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'admin/main/html_catalog.tpl', 24, false),array('modifier', 'amp', 'admin/main/html_catalog.tpl', 45, false),array('modifier', 'substitute', 'admin/main/html_catalog.tpl', 56, false),array('modifier', 'strip_tags', 'admin/main/html_catalog.tpl', 162, false),)), $this); ?>
<?php func_load_lang($this, "admin/main/html_catalog.tpl","txt_drop_old_catalog_warning,lbl_html_catalog,txt_html_catalog_top_text,txt_html_catalog_was_generated_in,txt_html_catalog_acces_url,txt_html_catalog_will_generated_in,lbl_drop_old_catalog,txt_drop_old_catalog_note,lbl_category,lbl_root_categories,lbl_walk_through_subcategories,lbl_generate_html_pages_for,lbl_categories_and_products,lbl_categories_only,lbl_products_only,lbl_pages_per_pass,txt_html_pages_per_pass_note,lbl_all,lbl_catalog_filenames_style,lbl_with_hyphens_in_filenames_4,lbl_with_hyphens_in_filenames,lbl_new_3_5_x,lbl_old_pre_3_5_x,lbl_filemask_example,lbl_convert_embedded_static_pages,lbl_gen_catalogs_for_langs,lbl_language,lbl_catalog_path,lbl_generate_catalog,lbl_html_catalog"); ?><script type="text/javascript" language="JavaScript">
<?php echo '
var previous_type = "hyphen_4";
function change_catalog_examples() {
	if (!document.htmlcatalogform || !document.htmlcatalogform.namestyle)
		return false;

	var catalog_type = document.htmlcatalogform.namestyle.value;
	if (catalog_type == "old")
		catalog_type = "default";

	var example_div = document.getElementById(catalog_type);
	if (example_div)
		example_div.style.display = "";
	if (previous_type != "") {
		var previous_div = document.getElementById(previous_type);
		if (previous_div)
			previous_div.style.display = "none";
	}
	previous_type = catalog_type;
}
'; ?>
	
var txt_drop_old_catalog_warning = "<?php echo ((is_array($_tmp=$this->_tpl_vars['lng']['txt_drop_old_catalog_warning'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript')); ?>
";
</script>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "page_title.tpl", 'smarty_include_vars' => array('title' => $this->_tpl_vars['lng']['lbl_html_catalog'])));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<?php echo $this->_tpl_vars['lng']['txt_html_catalog_top_text']; ?>


<br /><br />

<?php ob_start(); ?>

<form action="html_catalog.php" method="post" name="htmlcatalogform" onsubmit="javascript: return !document.htmlcatalogform.drop_pages.checked || confirm(txt_drop_old_catalog_warning);">
<input type="hidden"  name="mode" value="catalog_gen" />

<table cellpadding="5" cellspacing="1" width="100%">

<tr>
<td colspan="2">
<?php if (! $this->_tpl_vars['is_cat_empty']):  echo $this->_tpl_vars['lng']['txt_html_catalog_was_generated_in']; ?>

<?php $_from = $this->_tpl_vars['cat_info']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['c']):
?>
	<?php if ($this->_tpl_vars['c']['path'] != ''): ?>
	<b><?php echo ((is_array($_tmp=$this->_tpl_vars['c']['cat_dir'])) ? $this->_run_mod_handler('amp', true, $_tmp) : smarty_modifier_amp($_tmp)); ?>
</b><br />
	<?php endif;  endforeach; endif; unset($_from); ?>
<br /><br />
<?php echo $this->_tpl_vars['lng']['txt_html_catalog_acces_url']; ?>

<?php $_from = $this->_tpl_vars['cat_info']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['c']):
?>
	<?php if ($this->_tpl_vars['c']['path'] != ''): ?>
	<a href="<?php echo ((is_array($_tmp=$this->_tpl_vars['c']['cat_url'])) ? $this->_run_mod_handler('amp', true, $_tmp) : smarty_modifier_amp($_tmp)); ?>
" target="_new"><?php echo ((is_array($_tmp=$this->_tpl_vars['c']['cat_url'])) ? $this->_run_mod_handler('amp', true, $_tmp) : smarty_modifier_amp($_tmp)); ?>
</a><br />
	<?php endif;  endforeach; endif; unset($_from);  else: ?>
	<?php echo ((is_array($_tmp=$this->_tpl_vars['lng']['txt_html_catalog_will_generated_in'])) ? $this->_run_mod_handler('substitute', true, $_tmp, 'cat_dir', $this->_tpl_vars['cat_dir'], 'cat_url', $this->_tpl_vars['cat_url']) : smarty_modifier_substitute($_tmp, 'cat_dir', $this->_tpl_vars['cat_dir'], 'cat_url', $this->_tpl_vars['cat_url'])); ?>

<?php endif; ?>
</td>
</tr>

<tr>
	<td><?php echo $this->_tpl_vars['lng']['lbl_drop_old_catalog']; ?>
</td>
	<td>
<input type="checkbox" name="drop_pages" /><br />
<font class="SmallText"><?php echo $this->_tpl_vars['lng']['txt_drop_old_catalog_note']; ?>
</font>
	</td>
</tr>

<tr>
<td><?php echo $this->_tpl_vars['lng']['lbl_category']; ?>
</td>
<td>
<select name="start_category">
<option value=""><?php echo $this->_tpl_vars['lng']['lbl_root_categories']; ?>
</option>
<?php $_from = $this->_tpl_vars['categories']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['c']):
?>
<option value="<?php echo $this->_tpl_vars['c']['categoryid_path']; ?>
"><?php echo $this->_tpl_vars['c']['category']; ?>
</option>
<?php endforeach; endif; unset($_from); ?>
</select>
</td>
</tr>

<tr>
<td><?php echo $this->_tpl_vars['lng']['lbl_walk_through_subcategories']; ?>
</td>
<td><input type="checkbox" name="process_subcats" checked="checked" /></td>
</tr>

<tr>
<td><?php echo $this->_tpl_vars['lng']['lbl_generate_html_pages_for']; ?>
</td>
<td>
<select name="gen_action">
<option value="3"><?php echo $this->_tpl_vars['lng']['lbl_categories_and_products']; ?>
</option>
<option value="1"><?php echo $this->_tpl_vars['lng']['lbl_categories_only']; ?>
</option>
<option value="2"><?php echo $this->_tpl_vars['lng']['lbl_products_only']; ?>
</option>
</select>
</td>
</tr>

<tr>
<td><?php echo $this->_tpl_vars['lng']['lbl_pages_per_pass']; ?>
<br />
<font class="SmallText"><?php echo $this->_tpl_vars['lng']['txt_html_pages_per_pass_note']; ?>
</font>
</td>
<td>
<select name="pages_per_pass">
<option value="0"><?php echo $this->_tpl_vars['lng']['lbl_all']; ?>
</option>
<option>100</option>
<option>50</option>
<option>20</option>
<option>10</option>
</select>
</td>
</tr>

<tr>
<td><?php echo $this->_tpl_vars['lng']['lbl_catalog_filenames_style']; ?>
</td>
<td>
<select name="namestyle" onchange="javascript:change_catalog_examples();">
<option value="hyphen_4"><?php echo $this->_tpl_vars['lng']['lbl_with_hyphens_in_filenames_4']; ?>
</option>
<option value="hyphen"><?php echo $this->_tpl_vars['lng']['lbl_with_hyphens_in_filenames']; ?>
</option>
<option value="new"><?php echo $this->_tpl_vars['lng']['lbl_new_3_5_x']; ?>
</option>
<option value="old"><?php echo $this->_tpl_vars['lng']['lbl_old_pre_3_5_x']; ?>
</option>
</select>
<br />
<b><?php echo $this->_tpl_vars['lng']['lbl_filemask_example']; ?>
</b>:
<?php $_from = $this->_tpl_vars['name_styles']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['name'] => $this->_tpl_vars['style']):
?>
<div id="<?php echo $this->_tpl_vars['name']; ?>
" <?php if ($this->_tpl_vars['name'] != 'hyphen_4'): ?>style="display:none"<?php endif; ?>><?php echo $this->_tpl_vars['style']['category']; ?>
</div>
<?php endforeach; endif; unset($_from); ?>
</td>
</tr>

<tr>
<td><?php echo $this->_tpl_vars['lng']['lbl_convert_embedded_static_pages']; ?>
</td>
<td><input type="checkbox" name="process_staticpages" checked="checked" /></td>
</tr>

<tr valign="top">
<td><?php echo $this->_tpl_vars['lng']['lbl_gen_catalogs_for_langs']; ?>
:</td>
<td>
<table>
<tr class="TableHead">
	<th><?php echo $this->_tpl_vars['lng']['lbl_language']; ?>
</th>
	<th><?php echo $this->_tpl_vars['lng']['lbl_catalog_path']; ?>
</th>
</tr>
<?php if (! $this->_tpl_vars['is_cat_empty']):  $_from = $this->_tpl_vars['cat_info']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['c']):
?>
<tr>
    <td><?php echo $this->_tpl_vars['c']['language']; ?>
</td>
    <td><input type="text" name="lngcat[<?php echo $this->_tpl_vars['c']['lang_code']; ?>
]" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['c']['path'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
"/></td>
</tr>
<?php endforeach; endif; unset($_from);  else:  $_from = $this->_tpl_vars['all_languages']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['l']):
?>
<tr>
	<td><?php echo $this->_tpl_vars['l']['language']; ?>
</td>
	<td><input type="text" name="lngcat[<?php echo $this->_tpl_vars['l']['code']; ?>
]"<?php if ($this->_tpl_vars['l']['code'] == $this->_tpl_vars['config']['default_customer_language']): ?> value="<?php echo ((is_array($_tmp=$this->_tpl_vars['default_catalog_path'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
"<?php endif; ?> /></td>
</tr>
<?php endforeach; endif; unset($_from);  endif; ?>
</table>
</td>
</tr>

<tr>
	<td colspan="2" align="center" class="SubmitBox"><input type="submit" value="<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['lng']['lbl_generate_catalog'])) ? $this->_run_mod_handler('strip_tags', true, $_tmp, false) : smarty_modifier_strip_tags($_tmp, false)))) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" /></td>
</tr>

</table>
</form>

<?php $this->_smarty_vars['capture']['dialog'] = ob_get_contents(); ob_end_clean();  $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "dialog.tpl", 'smarty_include_vars' => array('title' => $this->_tpl_vars['lng']['lbl_html_catalog'],'content' => $this->_smarty_vars['capture']['dialog'],'extra' => 'width="100%"')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>